package com.mediacloud.app.newsmodule.activity.microlive;


import androidx.annotation.CallSuper;

public abstract class BasePresenter<T extends IView>
{
    boolean isDispose=false;
    public T getView() {
        return view;
    }

    private T view;

    public BasePresenter(T iView)
    {
        view=iView;
    }

    @CallSuper
    public void destory()
    {
        isDispose=true;
        if(view!=null)
            view.destory();
        view=null;
    }
}